package com.example.a28796.beautiful.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.example.a28796.beautiful.LoginActivity;
import com.example.a28796.beautiful.R;

/**
 * Created by 28796 on 2016/8/29.
 */
public class FragmentMine extends Fragment {
    private Button mButton;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_main,null);
        mButton = (Button) view.findViewById(R.id.bt_mine_login);
        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent  = new Intent(getActivity(),LoginActivity.class);
                startActivity(intent);

            }
        });
        return view;
    }
}
